package com.mbc.rmt.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

import com.mbc.common.param.CriteriaRMParams;

@SuppressWarnings("serial")
public class CashReturn extends CriteriaRMParams implements Serializable {

	private Long slipid;
	private String slipno;
	private Date createdate;
	private Date modifieddate;
	private Date trdate;
	private Long createdby;
	private Long modifiedby;
	private Long agentid;
	private String agentcode;
	private Long frombranchid;
	private Long defaultbranchid;
	private String defaultbranchcode;
	private Double paymentamount;
	private Long bankid;
	private Long typeid;
	private String typecode;
	private Byte trtype;
	private String remark;
	private String bankCode;
	
	private boolean isTyping;
	
	private ArrayList<CashReturnDetails> l_details;
	
	private Long currencyid;
	private Double amount;
	
	public CashReturn() {
		clearProperties();
	}
	
	public void clearProperties() {
		setSlipid(null);
		setSlipno("");
		setCreatedate(new Date());
		setModifieddate(new Date());
		setTrdate(new Date());
		setCreatedby(null);
		setModifiedby(null);
		setAgentid(null);
		setAgentcode("");
		setFrombranchid(null);
		setDefaultbranchid(null);
		setDefaultbranchcode("");
		setPaymentamount(null);
		setBankid(null);
		setTypeid(null);
		setTypecode("");
		setTrtype(null);
		setRemark("");
		setBankCode("");
		
		setTyping(false);
		
		setL_details(null);
		setCurrencyid(null);
		setAmount(null);
	 }

	public Long getSlipid() {
		return slipid;
	}

	public void setSlipid(Long slipid) {
		this.slipid = slipid;
	}

	public String getSlipno() {
		return slipno;
	}

	public void setSlipno(String slipno) {
		this.slipno = slipno;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getModifieddate() {
		return modifieddate;
	}

	public void setModifieddate(Date modifieddate) {
		this.modifieddate = modifieddate;
	}

	public Date getTrdate() {
		return trdate;
	}

	public void setTrdate(Date trdate) {
		this.trdate = trdate;
	}

	public Long getCreatedby() {
		return createdby;
	}

	public void setCreatedby(Long createdby) {
		this.createdby = createdby;
	}

	public Long getModifiedby() {
		return modifiedby;
	}

	public void setModifiedby(Long modifiedby) {
		this.modifiedby = modifiedby;
	}

	public Long getAgentid() {
		return agentid;
	}

	public void setAgentid(Long agentid) {
		this.agentid = agentid;
	}

	public Long getFrombranchid() {
		return frombranchid;
	}

	public void setFrombranchid(Long frombranchid) {
		this.frombranchid = frombranchid;
	}

	public Long getDefaultbranchid() {
		return defaultbranchid;
	}

	public void setDefaultbranchid(Long defaultbranchid) {
		this.defaultbranchid = defaultbranchid;
	}

	public Double getPaymentamount() {
		return paymentamount;
	}

	public void setPaymentamount(Double paymentamount) {
		this.paymentamount = paymentamount;
	}

	public Long getBankid() {
		return bankid;
	}

	public void setBankid(Long bankid) {
		this.bankid = bankid;
	}

	public Byte getTrtype() {
		return trtype;
	}

	public void setTrtype(Byte trtype) {
		this.trtype = trtype;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public ArrayList<CashReturnDetails> getL_details() {
		return l_details;
	}

	public void setL_details(ArrayList<CashReturnDetails> l_details) {
		this.l_details = l_details;
	}

	public Long getTypeid() {
		return typeid;
	}

	public void setTypeid(Long typeid) {
		this.typeid = typeid;
	}

	public String getAgentcode() {
		return agentcode;
	}

	public void setAgentcode(String agentcode) {
		this.agentcode = agentcode;
	}

	public String getDefaultbranchcode() {
		return defaultbranchcode;
	}

	public void setDefaultbranchcode(String defaultbranchcode) {
		this.defaultbranchcode = defaultbranchcode;
	}

	public String getTypecode() {
		return typecode;
	}

	public void setTypecode(String typecode) {
		this.typecode = typecode;
	}

	public boolean isTyping() {
		return isTyping;
	}

	public void setTyping(boolean isTyping) {
		this.isTyping = isTyping;
	}

	public Long getCurrencyid() {
		return currencyid;
	}

	public void setCurrencyid(Long currencyid) {
		this.currencyid = currencyid;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}
}
